package com.example.airquality.air.service.impl;

import com.example.airquality.air.entity.District;
import com.example.airquality.air.mapper.DistrictMapper;
import com.example.airquality.air.service.IDistrictService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author hzl
 * @since 2021-05-18
 */
@Service
public class DistrictServiceImpl extends ServiceImpl<DistrictMapper, District> implements IDistrictService {

    @Autowired
    private DistrictMapper districtMapper;

    @Override
    public List<District> getDistrictName(Integer id) {
        return districtMapper.getDistrictName(id);
    }
}
